#include "iirfilter.h"
#include "IIRFilterLib.h"

IIRFilter::IIRFilter(int filterPassType, int SampleRate, double fcf1, double fcf2)
{
    ButtorWorthFilter_Design(filterPassType, SampleRate, fcf1, fcf2);
}

double IIRFilter::filter(double signal)
{
    return ButtorWorthFilter_filter(signal);
}

IIRFilter::~IIRFilter()
{
    ButtorWorthFilter_Close();
}
